package com.oo.polymorphic_4.pizza;

import java.util.Scanner;

/**
 * SeaPizza--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 17:23
 **/
public class SeaPizza extends Pizza {
    private String content;

    public SeaPizza() {
        System.out.println("请输入配料信息：");
        Scanner sc = new Scanner(System.in);
        this.content = sc.nextLine();
    }

    @Override
    public void make() {
        System.out.println("名称："
        +this.getName()+"\n价格："+
        this.getPrice()+"元\n大小："
        +this.getSize()+"寸\n配料："
        +this.getContent());
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
